Association template definition. More...
#include <tassociation.h>
Public Member Functions | |
TAssociation () | |
Default constructor. | |
TAssociation (const T &, const O &) | |
Construct w/ key&object. | |
TAssociation (const T &) | |
Construct with key. | |
TAssociation (const TAssociation< T, O > &) | |
Copy constructor. | |
TAssociation< T, O > & | operator= (const TAssociation< T, O > &) |
Assignment. | |
void | set (const T &, const O &) |
Set new key and object. | |
T & | key () |
Return key value. | |
const T & | key () const |
Return key value. | |
void | key (const T &) |
Set new key value. | |
O & | object () |
Return object value. | |
const O & | object () const |
Return object value. | |
void | object (const O &) |
Set new object value. | |
bool | operator== (const TAssociation< T, O > &) const |
Equality check. | |
bool | operator!= (const TAssociation< T, O > &) const |
In-equality check. | |
bool | operator< (const TAssociation< T, O > &) const |
Less than check. | |
bool | operator> (const TAssociation< T, O > &) const |
Greater than check. | |
bool | operator<= (const TAssociation< T, O > &) const |
Less than or equal. | |
bool | operator>= (const TAssociation< T, O > &) const |
Greater or equal. |
Association template definition.
TAssociation | ( | ) | [inline] |
Default constructor.
TAssociation | ( | const T & | k, | |
const O & | o | |||
) | [inline] |
Construct w/ key&object.
"TAssociation" constructs a new association with the specified key and object.
TAssociation | ( | const T & | k | ) | [inline] |
Construct with key.
"TAssociation" constructs a new association with the specified key.
TAssociation | ( | const TAssociation< T, O > & | A | ) | [inline] |
Copy constructor.
"TAssociation" is the association copy constructor.
TAssociation< T, O > & operator= | ( | const TAssociation< T, O > & | A | ) | [inline] |
Assignment.
"=" assignment operator copies the specified association into this association.
void set | ( | const T & | k, | |
const O & | o | |||
) | [inline] |
Set new key and object.
"set" sets a new key and object value.
T & key | ( | ) | [inline] |
Return key value.
"key" returns the key value.
const T& key | ( | ) | const [inline] |
Return key value.
void key | ( | const T & | k | ) | [inline] |
Set new key value.
"key" sets a new key value.
O & object | ( | ) | [inline] |
Return object value.
"object" returns the object value.
const O& object | ( | ) | const [inline] |
Return object value.
void object | ( | const O & | o | ) | [inline] |
Set new object value.
"object" sets a new object value.
bool operator== | ( | const TAssociation< T, O > & | A | ) | const [inline] |
Equality check.
"==" checks to see if two associations are equal.
bool operator!= | ( | const TAssociation< T, O > & | A | ) | const [inline] |
In-equality check.
"!=" checks to see if two associations are not equal.
bool operator< | ( | const TAssociation< T, O > & | A | ) | const [inline] |
Less than check.
"<" checks if this association is less than the specified association.
bool operator> | ( | const TAssociation< T, O > & | A | ) | const [inline] |
Greater than check.
">" checks if this association is greater than the specified association.
bool operator<= | ( | const TAssociation< T, O > & | A | ) | const [inline] |
Less than or equal.
"<=" checks if this association is less than or equal to the specified association.
bool operator>= | ( | const TAssociation< T, O > & | A | ) | const [inline] |
Greater or equal.
">=" checks if this association is greater than or equal to the specified association.